<f:layout name="Default" />

This Template is responsible for creating a table of domain objects.

If you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml:
  Resources:
    Private:
      Templates:
        List.html: keep

Otherwise your changes will be overwritten the next time you save the extension in the extension builder

<f:section name="main">

<f:flashMessages />
<f:if condition="{type}=='0'">
<div class="panel panel-default">
	<div class="panel-heading ">
        <div class="row">
            <div class="col-lg-4 col-md-4 col-xs-12">
            	<f:link.action action="tailLog" arguments="{excelExport: 1 , massuid : massuid, type : type,keyword:keyword}" class="btn btn-sm btn-default"><span class="glyphicon glyphicon-export"></span>&nbsp;导出日志</f:link.action>
            	<f:link.typolink parameter="{form}" class="btn btn-sm btn-default" ><span class="glyphicon glyphicon-indent-right"></span>&nbsp;返回列表</f:link.typolink>
            </div>
            <div class="col-lg-8 col-md-8 col-xs-12 text-right">
                <f:form action="tailLog" name="search" class="form-inline" method="get">
                    <f:form.hidden name="massuid" value="{massuid}" />
                    <f:form.hidden name="type" value="{type}" />
                    <f:form.hidden name="from" value="{form}" />
                    <div class="input-group">
                        <f:form.textfield name="keyword" value="{keyword}" class="input-sm form-control" placeholder="接收者姓名/电话..."/>
                        <span class="input-group-btn">
                            <f:form.submit value="搜索" class="btn btn-sm btn-info"/>
                        </span>
                    </div>
	       		</f:form>
            </div>
        </div>
    </div>
    <f:widget.paginate objects="{logs}" as="logsPagination"  configuration="{settings.paginate}">
	  	<table class="table table-hover">
	      	<thead>
	          	<tr role="row">
	              	<th>序号</th>
	              	<th>类型</th>
	              	<th>发送者</th>
	              	<th>接收者</th>
	              	<th>日志</th>
	              	<th>发送时间</th>
	              	<th>状态</th>
	          	</tr>
	      	</thead>
	    	<tbody>
	          	<f:for each="{logsPagination}" as="log" iteration="num">
	  	            <tr>
	  	            	<td>{f:cObject(typoscriptObjectPath:'lib.calc',data:'{num.cycle}+({page}-1)*{settings.paginate.itemsPerPage}')}</td>
	  	                <td>
	  	                	<f:if condition="{log.type}=='sms'">短信</f:if>
	  	                	<f:if condition="{log.type}=='mail'">邮件</f:if>
	  	                </td>
	  	                <td>{log.sender}</td>
	  	                <td>{log.receiver}</td>
	  	                <td>{log.message}</td>
	  	                <td>{log.crdate->f:format.date(format:'Y/m/d H:i')}</td>
	  	                <td>
	  	                	<f:if condition="{log.suatus}=='0'">未发送</f:if>
	                        <f:if condition="{log.suatus}=='1'">已发送</f:if>
	                    </td>
	  	            </tr>
	  	        </f:for>  
	      	</tbody>
	    </table>
	</f:widget.paginate>
</div>
</f:if>
</f:section>